const utils = require("./util");

module.exports = globalVar = {
	get accountType() {
		return {
			INCOME: "INCOME",
			PAY: "PAY",
			ACCOUNT_TYPE_ALL: "ACCOUNT_TYPE_ALL",
		};
	},
	//任务状态
	get taskState() {
		return {
			RUN: "RUN", //进行中
			STOP: "STOP", //已停止
		};
	},
	get accountTypeLabel() {
		return {
			INCOME: "收入",
			PAY: "支出",
			ACCOUNT_TYPE_ALL: "全部类型",
		};
	},

	get accountTypeValue() {
		return {
			INCOME: true,
			PAY: false,
			ACCOUNT_TYPE_ALL: null,
		};
	},

	get get_account_record_type() {
		return {
			ACCOUNT_RECORD_GET: "1",
			ACCOUNT_RECORD_SEARCH: "2",
		};
	},
	get hostUrl() {
		return utils.getEnv().host;
	},

	get TypeOfCatOrTitleStop() {
		return {
			CAT: "CAT",
			TITLE: "TITLE",
		};
	},
	get collectionType() {
		return {
			NOTE: "NOTE",
			CHAT_MSG: "CHAT_MSG",
		};
	},
	get collectionTypeLabel() {
		return {
			NOTE: "笔记",
			CHAT_MSG: "聊天消息",
		};
	},

	get historyRouterType() {
		return {
			JUMP_TO_HISTORY_MSG: "JUMP_TO_HISTORY_MSG", // 从收藏 跳转至 历史消息
			UP_GET_HISTORY_MSG: "UP_GET_HISTORY_MSG", // 向上滚动获取历史消息
			DOWN_GET_HISTORY_MSG: "DOWN_GET_HISTORY_MSG", // 向下滚动获取历史消息
		};
	},

	//收入支出是谁定义的
	get DefineType() {
		return {
			isSysDefault: 1, //系统默认
			isUserDefine: 2, //用户定义
		};
	},
	//资源文件类别
	get resourceType() {
		return {
			icon: "icon", //图标
			other: "other", //其他
		};
	},
	//获取文件的类型
	get fileAction() {
		return {
			view: "view", //图片预览
			download: "download", //图片下载
			getBlackWhiteIconTotal: "getBlackWhiteIconTotal", //获取黑白图标文件数量
			showBlackWhiteIcon: "showBlackWhiteIcon", //显示黑白图标
			getFinanceIcon: "getFinanceIcon", //获取金融主题图标数量
			showFinanceIcon: "showFinanceIcon", //显示金融主题图标
			getColorIconTotal: "getColorIconTotal", //获取彩色图标文件数量
			showColorIcon: "showColorIcon", //显示彩色图标
			getOtherFileTotal: "getOtherFileTotal", //获取其他文件数量
			showOtherFile: "showOtherFile", //显示其他文件文件
		};
	},
};
